package com.hksj.base.mapper;

import com.hksj.base.query.InstantaneousPropertyQuery;
import com.hksj.base.query.InstantaneousValueQuery;
import com.hksj.base.query.RoomPropertyQuery;
import com.hksj.base.vo.DayPropertyVO;
import com.hksj.base.vo.DeviceVO;
import com.hksj.base.vo.InstantaneousValueVO;
import com.hksj.base.vo.RoomVO;
import com.hksj.common.config.annotation.DS_TAOS;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoomPropertyMapper {
    List<RoomVO> listRoom(@Param("query") RoomPropertyQuery query);

    List<DeviceVO> listPressureDevice(@Param("roomIdList") List<Long> roomIdList,@Param("code") String code);

    List<DeviceVO> listTemperatureHumidityDevice(@Param("roomIdList")List<Long> roomIdList);

    @DS_TAOS
    List<InstantaneousValueVO> listInstantaneousValueParams(@Param("query") InstantaneousValueQuery query);

    @DS_TAOS
    DayPropertyVO getInstantaneousProperty(@Param("query") InstantaneousPropertyQuery query);
}
